package com.bigshen.spring.demo.service.impl;

import com.bigshen.spring.demo.service.IModifyService;
import com.bigshen.spring.framework.annonation.Service;

/**
 * @Author eddy.shen
 * @Date 2020/4/18 11:10
 **/
@Service
public class ModifyServiceImpl implements IModifyService {

	/**
	 * 增加
	 */
	public String add(String name,String addr) throws Exception{
		throw new Exception("这是Tom故意抛出来的异常");

//		return "modifyService add,name=" + name + ",addr=" + addr;
	}

	/**
	 * 修改
	 */
	public String edit(Integer id,String name) {
		return "modifyService edit,id=" + id + ",name=" + name;
	}

	/**
	 * 删除
	 */
	public String remove(Integer id) {
		return "modifyService id=" + id;
	}
	
}
